package com.hyts.network.config;

/**
 * project-name:gitee-extends-toolbox
 * package-name:com.hyts.ext.network.config
 * author:Libo/Alex
 * create-date:2018-10-27 15:47
 * copyright:libo-hyts-github
 * email:libo2dev@aliyun.com
 * description:此类主要用于:
 */
public final class SystemProperties {

    /**
     * field-name: osCoreNum
     * field-type: int
     * description: 操作系统内核cpu核数
     */
    public  static final int OS_CORE_NUM = Runtime.getRuntime().availableProcessors();

    /**
     * 默认重试连接次数为3次
     */
    public static final int DEFAULT_RETRY_CONNECTION_TIMES = 3;

    /**
     * 默认单cpu内核线程池大小为4
     */
    public static final int DEFAULT_SINGLE_CORE_THREAD_NUM = 4;

    /**
     * 默认处理器操作数据块大小为1024
     */
    public static final String DEFAULT_HANDLER_CHARSET_ENCODING = "UTF-8";

}
